package com.godme.user.sentinel;

import com.alibaba.csp.sentinel.slots.block.BlockException;

public class UserSentinelResource{

    public static boolean isRegisteredBlock(String mail, BlockException bk) {
        System.err.println("isRegisteredBlock : " + bk.getMessage());
        return false;
    }

    public static boolean authBlock(String mail, String password, BlockException bk) {
        System.err.println("authBlock : " + bk.getMessage());
        return false;
    }

    public static boolean registerBlock(String mail, String password, String code, BlockException bk) {
        System.err.println("registerBlock : " + bk.getMessage());
        return false;
    }

    public static String checkBlock(String token, BlockException bk) {
        System.err.println("checkBlock : " + bk.getMessage());
        return "";
    }

    public static String signBlock(String mail, String password, BlockException bk) {
        System.err.println("signBlock : " + bk.getMessage());
        return "";
    }

    public static boolean isRegisteredFallback(String mail, Throwable throwable) {
        System.err.println("isRegisteredFallback : " + throwable.getMessage());
        return false;
    }

    public static boolean authFallback(String mail, String password, Throwable throwable) {
        System.err.println("authFallback : " + throwable.getMessage());
        return false;
    }

    public static boolean registerFallback(String mail, String password, String code, Throwable throwable) {
        System.err.println("registerFallback : " + throwable.getMessage());
        return false;
    }

    public static String checkFallback(String token, Throwable throwable) {
        System.err.println("checkFallback : " + throwable.getMessage());
        return null;
    }

    public static String signFallback(String mail, String password, Throwable throwable) {
        System.err.println("signFallback : " + throwable.getMessage());
        return null;
    }
}
